package T3;

public class CallPackage extends AbstractPackage implements CallService {

    private double time;

    private int news;

    private double money;

    public CallPackage(double time, int news, double money) {
        this.time = time;
        this.news = news;
        this.money = money;
    }

    public CallPackage() {
    }

    public void show(){
        System.out.println("通话时长: "+time+",短信条数: "+news+",每月资费: "+money);
    }

    public void callService(double time, Card card) {
        System.out.println("通话服务: 通话时长 "+time+"手机卡类型 "+card.getCardkind());
    }

    public double getTime() {
        return time;
    }

    public void setTime(double time) {
        this.time = time;
    }

    public int getNews() {
        return news;
    }

    public void setNews(int news) {
        this.news = news;
    }

    @Override
    public double getMoney() {
        return money;
    }

    @Override
    public void setMoney(double money) {
        this.money = money;
    }
}
